<template>
</template>

<script>
	export default {
		data() {
			return {
				loginForm: {
					username: "dashuju",
					password: "123456@bhu",
					code: "",
					uuid: ''
				}
			}
		},
		created() {
			this.pwdLogin()
		},
		methods: {
			// 密码登录
			async pwdLogin() {
				this.$store.dispatch('Login', this.loginForm).then(() => {
					this.loginSuccess()
				})
			},
			// 登录成功后，处理函数
			loginSuccess(result) {
				// 设置用户信息
				this.$store.dispatch('GetInfo').then(res => {
          this.$router.push({path: "/dashujuzhanshi/dashujushouye"});
					// this.$tab.reLaunch('/pages/module/wtc/index?table=21')
				})
			},
		}
	}
</script>

<style>
</style>
